package com.xmut.rc.mapper;

import com.xmut.rc.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description: 用户角色Mapper
 * @author: XS
 * @date: 2022/5/23
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    @Select("select * from rc_user_role where user_id = #{userId}")
    List<UserRole> getUserRoleByUserId(String userId);

    @Select("delete from rc_user_role where user_id = #{userId}")
    void deleteUserRole(String userId);
}
